<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hezi</title>
</head>
<body>
     <div>
        盒子
        <p>段落1</p>
        <p>段落2</p>
     </div>
     <style>
        div{
            border: 4px red solid;
            padding:30px;
            margin: 20px;
            width: 200px;
        }
        p{
            border: 4px green solid;
            background-color: blue;
            padding: 10px;
            margin: 20px;
        }
     </style>
     <style>
        .box {
            box-sizing: content-box;
            padding:20px;
            margin-top: 10px;
            margin-left: 10px;
            border-top: 10px dashed #5423dd;
            border-bottom: 20px solid #ffef11;
            border-left:10px dashed #db1fc2;
            border-right:10px solid #000000;
        }
    </style>
    <body>
        <div class="box">
            <img src="./盒子.jpg"width="200">
        </div>
    </body>
</body>
</html>